package primitive;

public class Article {

	private String date;
	private String topics;
	private String places;
	private String people;
	private String orgs;
	private String exchanges;
	private String companies;
	private String unknown;
	private String title;
	private String dateline;
	private String body;
	
	public Article() {
		
	}
	
	public Article(Article article) {
		this.date = article.getDate();
		this.topics = article.getTopics();
		this.places = article.getPlaces();
		this.people = article.getPeople();
		this.orgs = article.getOrgs();
		this.exchanges = article.getExchanges();
		this.companies = article.getCompanies();
		this.unknown = article.getUnknown();
		this.title = article.getTitle();
		this.dateline = article.getDateline();
		this.body = article.getBody();
	}
	
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getTopics() {
		return topics;
	}
	public void setTopics(String topics) {
		this.topics = topics;
	}
	public String getPlaces() {
		return places;
	}
	public void setPlaces(String places) {
		this.places = places;
	}
	public String getPeople() {
		return people;
	}
	public void setPeople(String people) {
		this.people = people;
	}
	public String getOrgs() {
		return orgs;
	}
	public void setOrgs(String orgs) {
		this.orgs = orgs;
	}
	public String getExchanges() {
		return exchanges;
	}
	public void setExchanges(String exchanges) {
		this.exchanges = exchanges;
	}
	public String getCompanies() {
		return companies;
	}
	public void setCompanies(String companies) {
		this.companies = companies;
	}
	public String getUnknown() {
		return unknown;
	}
	public void setUnknown(String unknown) {
		this.unknown = unknown;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDateline() {
		return dateline;
	}
	public void setDateline(String dateline) {
		this.dateline = dateline;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	
	public String getValue(String key) {
		switch (key) {
		case "date":
			return date;
		case "topics":
			return topics;
		case "places":
			return places;
		case "people":
			return people;
		case "orgs":
			return orgs;
		case "exchanges":
			return exchanges;
		case "companies":
			return companies;
		case "unknown":
			return unknown;
		case "title":
			return title;
		case "dateline":
			return dateline;
		case "body":
			return body;
		default:
			return "";
		}
	}
	
	public void show() {
		System.out.println(date + " | " + topics + " | " + places + " | " + people + " | " + orgs + " | " + exchanges + " | " + companies + " | " + unknown + " | "  + title + " | " + dateline + " | " + body);
	}

}
